home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 5 / Windows 6-Pak (InfoMagic) (Disc 5) (1999).ISO / Scripting-Tools / js15full.exe / Combo.ht_ / Combo.ht
Encoding:
Text File  |  1998-05-31  |  1.6 KB  |  46 lines

  1. <html>
  2.  
  3. <head>
  4. <script language="JavaScript">
  5.  
  6. <!-- Hide the script from old browsers --
  7.  
  8. //======================================================
  9. // Java Script code by Java Script It!   www.computan.on.ca/~todd/JavaScriptIt!
  10. //======================================================
  11.  
  12. function comboLinksA (form,targ) {
  13.     url=document.comboA.combo.options[document.comboA.combo.selectedIndex].value
  14.             if (targ=="Self")
  15.                 location.href=url;
  16.             else {
  17.                 parent.location.href=url;
  18.             }
  19. }
  20.  
  21. //---------------->
  22. </script>
  23. <title>Combo Links</title>
  24. </head>
  25.  
  26. <body bgColor="#FFFFFF" text="000000">
  27.  
  28. <div align=center><font size=6 font="Arial"><b>Combo Links</b></font></div><p>
  29.  
  30. Below is an example of what the Combo Links application can do. Note that you configure one combo box at a time but you can place any amount of combo boxes (can be created at different times) on a given document.<p>
  31.  
  32. <b>Some Links For You...</b><br>
  33. <form name="comboA"><select name="combo"><option SELECTED value="alert.htm">Alert Dialogue Boxes<option value="animat.htm">Animation<option value="confirm.htm">Confirm Dialogue Boxes</select><input type=button value="Click to Go!" onClick="comboLinksA('this.form','Self')"></form><p>
  34.  
  35. <b>Browser Compatibility</b><br>
  36. ò Works fully in Netscape Navigator 2.01and higher<br>
  37. ò Works fully in Microsoft Internet Explorer 3.0 and higher<br>
  38. ò No errors should occur in old browsers but the corresponding button might appear as a text box<br>
  39. ò Old browsers will also display a URL not found dialogue box when hyperlink is clicked
  40.  
  41. </body>
  42.  
  43.  
  44. </html>
  45.  
  46.